import request from '@/utils/request'

export function handleList(data) {
  return request({
    url: '/category.index',
    method: 'post',
    data
  })
}

export function handleAdd(data) {
  return request({
    url: '/category.index/handleAdd',
    method: 'post',
    data
  })
}

export function handleEdit(data) {
  return request({
    url: '/category.index/handleEdit',
    method: 'post',
    data
  })
}

export function handleDel(data) {
  return request({
    url: '/category.index/handleDel',
    method: 'post',
    data
  })
}

export function changeStatus(data) {
  return request({
    url: '/category.index/handleStatus',
    method: 'post',
    data
  })
}
export function adminInfo(data) {
  return request({
    url: '/admin/info',
    method: 'post',
    data
  })
}
